#include "User.h"
#include "string.h"


std::ostream& operator<<(std::ostream& os, const CUser& o) {
    os << "username:\t" << o.username << '\n'
            << "password:\t" << o.password << '\n'
            << "age:\t\t" << (int) o.age;
    return os;
}



CUser::CUser(const char* username, const char* password, char age) : age(age) {
    strcpy(this->username, username);
    strcpy(this->password, password);
}

const char* CUser::getUsername() const {
    return this->username;
}

void CUser::setUsername(const char* username) {
    strcpy(this->username, username);
}

const char* CUser::getPassword() const {
    return this->password;
}

void CUser::setPassword(const char* password) {
    strcpy(this->password, password);
}

const char CUser::getAge() const {
    return this->age;
}

void CUser::setAge(char age) {
    this->age = age;
}




